/*
 * @(#)XfdmWangMendel.java        1.0 2000/05/09
 *
 * This file is part of Xfuzzy 3.0, a design environment for fuzzy logic
 * based systems.
 *
 * (c) 2000 IMSE-CNM. The authors may be contacted by the email address:
 *                    xfuzzy-team@imse.cnm.es
 *
 * Xfuzzy is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by
 * the Free Software Foundation.
 *
 * Xfuzzy is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 */

package xfuzzy.xfdm.model.algorithm;

import xfuzzy.lang.*;
import java.util.Vector;

/**
 * Algoritmo de Wang y Mendel de generaci�n de reglas activas
 * 
 * @author Francisco Jos� Moreno Velo
 *
 */
public class XfdmWangMendel extends XfdmActiveRules {

	//----------------------------------------------------------------------------//
	//                                CONSTRUCTOR                                 //
	//----------------------------------------------------------------------------//

	/**
	 * Constructor
	 */
	public XfdmWangMendel(){
	}

	//----------------------------------------------------------------------------//
	//                             M�TODOS P�BLICOS                               //
	//----------------------------------------------------------------------------//

	/**
	 * Obtiene el nombre del algoritmo
	 */
	public String toString() {
		return "Wang & Mendel (Active rule extraction)";
	}

	/**
	 * Representaci�n en el fichero de configuraci�n
	 */
	public String toXML() {
		return "\t\t<algorithm name=\"WangMendel\" ></algorithm>";
	}

	/**
	 * Indica si el algoritmo es v�lido para problemas de clasificaci�n
	 * @return
	 */
	public boolean supportsClassification() {
		return true;
	}
	
	/**
	 * Indica si el algoritmo es v�lido para problemas de regresi�n
	 * @return
	 */
	public boolean supportsRegression() {
		return true;
	}

	/**
	 * Selecciona las reglas entre las reglas activas
	 */
	public Vector<XfdmPseudoRule> pruneRules(Vector<XfdmPseudoRule> rules, KnowledgeBase base) {
		return rules;
	}
}


